package com.fz.us.oa.core.service.com.impl;


import com.fz.us.admin.base.dao.BaseDao;
import com.fz.us.admin.base.service.impl.BaseServiceImpl;
import com.fz.us.oa.core.dao.com.NoticeQueryDao;
import com.fz.us.oa.core.entity.com.NoticeQuery;
import com.fz.us.oa.core.service.com.NoticeQueryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class NoticeQueryServiceImpl extends BaseServiceImpl<NoticeQuery,String> implements NoticeQueryService {
    @Resource
    NoticeQueryDao noticeQueryDao;

    @Override
    public BaseDao<NoticeQuery, String> getBaseDao() {
        return noticeQueryDao;
    }

    @Override
    public List<NoticeQuery> findUsersByNoticeQuery(String userId) {
        return noticeQueryDao.findUsersByNoticeQuery(userId);
    }

    @Override
    public List<NoticeQuery> findUsersByNoticeQuery(String userId, String keyId) {
        return noticeQueryDao.findUsersByNoticeQuery(userId, keyId);
    }
}
